package model;

/**
 * @Author quan
 * @Description TODO
 * @Date 2023/6/28 17:23
 */
public class Message {
    //要在数据库中先设置好这个表，包括这四个属性
    private Long id;//对应到数据库中的主键
    private String sender;//发送者
    private String receiver;//接受者
    private String content;//留言内容
    //生成相应的get和set方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
